package com.agileboot.attendance.domain.order.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 订单DTO
 *
 * @author agileboot
 */
@Data
@ApiModel("订单DTO")
public class OrderDTO {

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("订单编码")
    private String orderCode;

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("供应商ID")
    private Long supplierId;

    @ApiModelProperty("供应商名称")
    private String supplierName;

    @ApiModelProperty("起始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty("结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty("结算周期（1月 2季 3年 4自定义）")
    private String settlementCycle;
    
    @ApiModelProperty("结算周期名称")
    private String settlementCycleName;

    @ApiModelProperty("状态（0进行中 1已完成 2已取消）")
    private String status;
    
    @ApiModelProperty("状态名称")
    private String statusName;

    @ApiModelProperty("订单金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("备注")
    private String remark;
} 